<form name="$ctrl.redeployGitForm" class="form-horizontal my-8">
  <div class="col-sm-12 form-section-title">
    Redeploy from git repository
  </div>
  <div class="text-muted small form-group">
    <div class="col-sm-12">
      <p>
        This stack was deployed from the git repository <code>{{ $ctrl.model.URL }}</code>
        .
      </p>
      <p>
        Update <code>{{ $ctrl.model.ConfigFilePath }}</code> in git and pull from here to update the stack.
      </p>
    </div>
  </div>

  <git-form-ref-field value="$ctrl.formValues.RefName" on-change="($ctrl.onChangeRef)"></git-form-ref-field>
  <git-form-auth-fieldset model="$ctrl.formValues" on-change="($ctrl.onChange)"></git-form-auth-fieldset>

  <button
    class="btn btn-sm btn-primary"
    ng-click="$ctrl.submit()"
    ng-disabled="$ctrl.isSubmitButtonDisabled()"
    style="margin-top: 7px; margin-left: 0;"
    button-spinner="$ctrl.state.inProgress"
  >
    <span ng-hide="$ctrl.state.inProgress"> <i class="fa fa-sync space-right" aria-hidden="true"></i> Pull and redeploy </span>
    <span ng-show="$ctrl.state.inProgress">In progress...</span>
  </button>
</form>
